import Vue from 'vue'
import Router from 'vue-router'
//引入路由页面
import index from '@/pages/index'
import movieDetail from '@/pages/movieDetail'
Vue.use(Router)

export default new Router({
    // routes用来定义路由对象，里面的每一个对象都是一个路由 路由集合
    routes: [{
        path: '/',
        name: 'index',
        component: index
    }, {
        path: '/movieDetail',
        name: 'movieDetail',
        component: movieDetail
    }]
})